﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
using System.Data;

namespace veterinaria.negocio
{
    class GestorEmpleados
    {

        public DataTable getTipoDocumentos()
        {
            SqlConnection con = ConexionBaseDeDatos.obtenerConexion();

            SqlCommand cmd = new SqlCommand();
            cmd.CommandType = CommandType.Text;
            cmd.Connection = con;

            cmd.CommandText = "SELECT Id_Tipo_Documento, Nombre FROM Tipo_Documento";

            SqlDataAdapter da = new SqlDataAdapter();
            da.SelectCommand = cmd;

            DataTable dt = new DataTable();

            da.Fill(dt);

            return dt;
        }
    }


}
